import "../css/style.css";
import "../css/title.less";
import "../css/image.css";
import "../font/iconfont.css";
import srcImg from "../img/02.jpg"

// 创建简单的标签
const divEl = document.createElement("div");
divEl.className = "title";
divEl.innerHTML = "Hello,ypf";
document.body.appendChild(divEl);

// 通过背景的模式设置图片
const divBg = document.createElement("div");
divBg.className = "image-bg";
document.body.appendChild(divBg);


// 通过src的模式设置img
const divImg = document.createElement("img");
divImg.src =srcImg;
divImg.className = "image";
document.body.appendChild(divImg);

// 字体相关的使用
const iEl = document.createElement('i');
iEl.className = "iconfont icon-ashbin";
document.body.appendChild(iEl);

// 模拟一个错误，方便测试mode的调试
// JSON.parse(kfdf);
